﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Hi_Baidu.User.Serializable.Log
{
    [Serializable]
    public class UserSettingInfo :EncryptSerializable
    {
        public UserSettingInfo(String FileName, String Key)
            : base(FileName, Key)
        {

        }

        public UserSettingInfo(MemoryStream MS_Encrypt, String Key)
            : base(MS_Encrypt, Key)
        {

        }

        #region 用户个人信息字段

        private bool _AutoLogin = false;
        /// <summary>
        ///     自动登陆标示
        /// </summary>
        public bool AutoLogin
        {
            get { return _AutoLogin; }
            set { _AutoLogin = value; }
        }
        private bool _RememberPassword = false;
        /// <summary>
        ///     记住密码标示
        /// </summary>
        public bool RememberPassword
        {
            get { return _RememberPassword; }
            set { _RememberPassword = value; }
        }
        private int _LoginState = 0;
        /// <summary>
        ///     初始登录状态
        /// </summary>
        public int LoginState
        {
            get { return _LoginState; }
            set { _LoginState = value; }
        }
        private String _Username = "";
        /// <summary>
        ///     用户名
        /// </summary>
        public String Username
        {
            get { return _Username; }
            set { _Username = value; }
        }
        private String _Password = "";
        /// <summary>
        ///     密码
        /// </summary>
        public String Password
        {
            get { return _Password; }
            set { _Password = value; }
        }
        private String _HeadImage = "";
        /// <summary>
        ///     头像文件地址
        /// </summary>
        public String HeadImage
        {
            get { return _HeadImage; }
            set { _HeadImage = value; }
        }

        #endregion

    }
}
